The Dreamweaver JavaScript API > Enablers > site.canLocateInSite()

 

site.canLocateInSite()

Availability

Dreamweaver 3.0

Description

Determines whether Dreamweaver can perform a Locate in Local Site or Locate in Remote Site operation (depending on the argument).

Arguments

localOrRemote, siteOrURL

localOrRemote must be either "local" or "remote".
siteOrURL must be the keyword "site", indicating that the function should act on the selection in the Site window, or the URL for a single file.

Returns

One of the following values:

If the first argument is "local" and the second argument is a URL, a Boolean value indicating whether the document belongs to a site.
If the first argument is "remote" and the second argument is a URL, a Boolean value indicating whether the document belongs to a site for which a remote site has been defined, and, if the server type is Local/Network, whether the drive is mounted.
If the second argument is "site", a Boolean value indicating whether both panes contain site files (not the site map) and whether the selection is in the opposite pane from the argument.